package cn.jantd.modules.activiti.service.impl;

import cn.jantd.core.system.base.service.impl.BaseServiceImpl;
import cn.jantd.modules.activiti.entity.TaskFileType;
import cn.jantd.modules.activiti.mapper.TaskFileTypeMapper;
import cn.jantd.modules.activiti.service.ITaskFileTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @ProjectName: trial-training-flow-boot-parent
 * @Package: cn.jantd.modules.activiti.service.impl
 * @ClassName: TaskFiletypeServiceImpl
 * @Author: admin
 * @Description:
 * @Date: 2020/8/13 14:20
 * @Version: 1.0
 */
@Service
public class TaskFileTypeServiceImpl extends BaseServiceImpl<TaskFileTypeMapper, TaskFileType> implements ITaskFileTypeService {
    @Autowired
    TaskFileTypeMapper taskFileTypeMapper;
    @Override
    public void updateDefinition(String modelId,String definitionId) {
        taskFileTypeMapper.updateDefinition(modelId, definitionId);

    }

    @Override
    public List<TaskFileType> getByModelId(String id) {
        return taskFileTypeMapper.getByModelId(id);
    }
    @Override
    public List<TaskFileType> getByModel(String id) {
        return taskFileTypeMapper.getByModel(id);
    }
    @Override
    public void updateByActiviti(TaskFileType taskFileType) {
        taskFileTypeMapper.updateByActiviti(taskFileType);
    }
}
